home *** CD-ROM | disk | FTP | other *** search
- unit RRect_TLB;
-
- // ************************************************************************ //
- // WARNING //
- // ------- //
- // The types declared in this file were generated from data read from a //
- // Type Library. If this type library is explicitly or indirectly (via //
- // another type library referring to this type library) re-imported, or the //
- // 'Refresh' command of the Type Library Editor activated while editing the //
- // Type Library, the contents of this file will be regenerated and all //
- // manual modifications will be lost. //
- // ************************************************************************ //
-
- // PASTLWTR : $Revision: 1.11.1.63 $
- // File generated on 11/6/1999 3:11:02 PM from Type Library described below.
-
- // ************************************************************************ //
- // Type Lib: D:\SDK6.0\SAMPLES\Delphi\Regens\RRect2\RRect.tlb
- // IID\LCID: {32E30FD0-3F6C-4D92-8860-38AD89B3601D}\0
- // Helpfile:
- // HelpString: RRect Library
- // Version: 1.0
- // ************************************************************************ //
-
- interface
-
- uses Windows, ActiveX, Classes, Graphics, OleCtrls, StdVCL;
-
- // *********************************************************************//
- // GUIDS declared in the TypeLibrary. Following prefixes are used: //
- // Type Libraries : LIBID_xxxx //
- // CoClasses : CLASS_xxxx //
- // DISPInterfaces : DIID_xxxx //
- // Non-DISP interfaces: IID_xxxx //
- // *********************************************************************//
- const
- LIBID_RRect: TGUID = '{32E30FD0-3F6C-4D92-8860-38AD89B3601D}';
- IID_IRoundedRect: TGUID = '{0F3C6867-EC4C-43E5-B709-B582D9C8AD21}';
- CLASS_RoundedRect: TGUID = '{96446B45-0EAA-475F-B88F-41F0BDF02A16}';
- type
-
- // *********************************************************************//
- // Forward declaration of interfaces defined in Type Library //
- // *********************************************************************//
- IRoundedRect = interface;
- IRoundedRectDisp = dispinterface;
-
- // *********************************************************************//
- // Declaration of CoClasses defined in Type Library //
- // (NOTE: Here we map each CoClass to its Default Interface) //
- // *********************************************************************//
- RoundedRect = IRoundedRect;
-
-
- // *********************************************************************//
- // Interface: IRoundedRect
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {0F3C6867-EC4C-43E5-B709-B582D9C8AD21}
- // *********************************************************************//
- IRoundedRect = interface(IDispatch)
- ['{0F3C6867-EC4C-43E5-B709-B582D9C8AD21}']
- function Get_ClassID: WideString; safecall;
- function Get_Description: WideString; safecall;
- function GetPropertyInfo(var Names: OleVariant; var Types: OleVariant; var IDs: OleVariant;
- var Defaults: OleVariant): Integer; safecall;
- function GetPageInfo(AGraphic: OleVariant; var StockPages: Integer; var Names: OleVariant): Integer; safecall;
- function GetWizardInfo(var Names: OleVariant): Integer; safecall;
- function GetEnumNames(PropID: Integer; var Names: OleVariant; var Values: OleVariant): Integer; safecall;
- function PageControls(ThisRegenMethod: OleVariant; Graphic: OleVariant; PageNumber: Integer;
- SaveProperties: WordBool): WordBool; safecall;
- procedure PageDone(ThisRegenMethod: OleVariant; PageNumber: OleVariant); safecall;
- function PropertyPages(ThisRegenMethod: OleVariant; PageNumber: OleVariant): WordBool; safecall;
- function Wizard(ThisRegenMethod: OleVariant; WizardNumber: OleVariant): WordBool; safecall;
- procedure OnGeometryChanged(Graphic: OleVariant; GeomID: Integer; ParanOld: OleVariant;
- ParamNew: OleVariant); safecall;
- function OnGeometryChanging(Graphic: OleVariant; GeomID: Integer; ParamOld: OleVariant;
- ParamNew: OleVariant): WordBool; safecall;
- function OnNewGraphic(grfThis: OleVariant; boolCopy: WordBool): WordBool; safecall;
- function OnCopyGraphic(grfCopy: OleVariant; SourceGraphic: OleVariant): WordBool; safecall;
- procedure OnPropertyChanged(Graphic: OleVariant; PropID: Integer; ValueOld: OleVariant;
- ValueNew: OleVariant); safecall;
- function OnPropertyChanging(Graphic: OleVariant; PropID: Integer; ParamOld: OleVariant;
- ParamNew: OleVariant): WordBool; safecall;
- procedure OnPropertyGet(Graphic: OleVariant; PropID: Integer); safecall;
- function Draw(grfThis: OleVariant; View: OleVariant; mat: OleVariant): WordBool; safecall;
- procedure Regen(grfThis: OleVariant); safecall;
- property ClassID: WideString read Get_ClassID;
- property Description: WideString read Get_Description;
- end;
-
- // *********************************************************************//
- // DispIntf: IRoundedRectDisp
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {0F3C6867-EC4C-43E5-B709-B582D9C8AD21}
- // *********************************************************************//
- IRoundedRectDisp = dispinterface
- ['{0F3C6867-EC4C-43E5-B709-B582D9C8AD21}']
- property ClassID: WideString readonly dispid 1;
- property Description: WideString readonly dispid 2;
- function GetPropertyInfo(var Names: OleVariant; var Types: OleVariant; var IDs: OleVariant;
- var Defaults: OleVariant): Integer; dispid 3;
- function GetPageInfo(AGraphic: OleVariant; var StockPages: Integer; var Names: OleVariant): Integer; dispid 4;
- function GetWizardInfo(var Names: OleVariant): Integer; dispid 5;
- function GetEnumNames(PropID: Integer; var Names: OleVariant; var Values: OleVariant): Integer; dispid 6;
- function PageControls(ThisRegenMethod: OleVariant; Graphic: OleVariant; PageNumber: Integer;
- SaveProperties: WordBool): WordBool; dispid 7;
- procedure PageDone(ThisRegenMethod: OleVariant; PageNumber: OleVariant); dispid 8;
- function PropertyPages(ThisRegenMethod: OleVariant; PageNumber: OleVariant): WordBool; dispid 9;
- function Wizard(ThisRegenMethod: OleVariant; WizardNumber: OleVariant): WordBool; dispid 10;
- procedure OnGeometryChanged(Graphic: OleVariant; GeomID: Integer; ParanOld: OleVariant;
- ParamNew: OleVariant); dispid 11;
- function OnGeometryChanging(Graphic: OleVariant; GeomID: Integer; ParamOld: OleVariant;
- ParamNew: OleVariant): WordBool; dispid 12;
- function OnNewGraphic(grfThis: OleVariant; boolCopy: WordBool): WordBool; dispid 13;
- function OnCopyGraphic(grfCopy: OleVariant; SourceGraphic: OleVariant): WordBool; dispid 14;
- procedure OnPropertyChanged(Graphic: OleVariant; PropID: Integer; ValueOld: OleVariant;
- ValueNew: OleVariant); dispid 15;
- function OnPropertyChanging(Graphic: OleVariant; PropID: Integer; ParamOld: OleVariant;
- ParamNew: OleVariant): WordBool; dispid 16;
- procedure OnPropertyGet(Graphic: OleVariant; PropID: Integer); dispid 17;
- function Draw(grfThis: OleVariant; View: OleVariant; mat: OleVariant): WordBool; dispid 18;
- procedure Regen(grfThis: OleVariant); dispid 19;
- end;
-
- CoRoundedRect = class
- class function Create: IRoundedRect;
- class function CreateRemote(const MachineName: string): IRoundedRect;
- end;
-
- implementation
-
- uses ComObj;
-
- class function CoRoundedRect.Create: IRoundedRect;
- begin
- Result := CreateComObject(CLASS_RoundedRect) as IRoundedRect;
- end;
-
- class function CoRoundedRect.CreateRemote(const MachineName: string): IRoundedRect;
- begin
- Result := CreateRemoteComObject(MachineName, CLASS_RoundedRect) as IRoundedRect;
- end;
-
- end.
-